/* 统一现代化设计风格 - 基于玻璃态设计 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: #34495E;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 50%, #e8f5e8 100%);
    min-height: 100vh;
}

/* 统一背景纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(39, 174, 96, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(22, 160, 133, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 统一容器样式 */
.modern-container {
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 现代化卡片样式 */
.modern-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 现代化头部样式 */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #34495E;
    margin: 0;
}

.modern-back-btn {
    background: rgba(46, 204, 113, 0.1);
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    color: #2ECC71;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-back-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: scale(1.05);
}

/* 现代化按钮样式 */
.modern-btn {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn-outline {
    background: transparent;
    border: 2px solid #2ECC71;
    color: #2ECC71;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-btn-outline:hover {
    background: #2ECC71;
    color: white;
}

/* 现代化输入框样式 */
.modern-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #34495E;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-input:focus {
    outline: none;
    border-color: #2ECC71;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #95A5A6;
    font-weight: 400;
}

/* 现代化列表样式 */
.modern-list {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(46,204,113,0.06);
    padding: 8px 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.modern-list-item {
    border-radius: 0;
    background: transparent;
    margin: 8px 0;
    /* border: 1px solid #adadad; */
    box-sizing: border-box;
}

.modern-list-item:first-child {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.modern-list-item:last-child {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.modern-list-item:hover {
    background: rgba(46, 204, 113, 0.05);
}

.modern-list-item img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.modern-list-content {
    flex: 1;
}

.modern-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #34495E;
    margin-bottom: 4px;
}

.modern-list-subtitle {
    font-size: 14px;
    color: #7F8C8D;
}

/* 现代化网格布局 */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.modern-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 现代化状态标签 */
.modern-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-status-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27AE60;
}

.modern-status-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.modern-status-error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.modern-status-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498DB;
}

/* 现代化数据展示 */
.modern-data-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-data-value {
    font-size: 32px;
    font-weight: 700;
    color: #2ECC71;
    margin-bottom: 8px;
}

.modern-data-label {
    font-size: 14px;
    color: #7F8C8D;
    font-weight: 500;
}

/* 现代化图标样式 */
.modern-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

/* 现代化开关样式 */
.modern-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: rgba(189, 195, 199, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-switch.active {
    background: #2ECC71;
}

.modern-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modern-switch.active .modern-switch-handle {
    transform: translateX(28px);
}

/* 现代化加载动画 */
.modern-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    border-top-color: #2ECC71;
    animation: modern-spin 1s ease-in-out infinite;
}

@keyframes modern-spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-container {
        padding: 16px;
    }
    
    .modern-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .modern-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .modern-data-value {
        font-size: 28px;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: more) {
    .modern-card {
        border: 2px solid #2ECC71;
    }
    
    .modern-input {
        border: 2px solid #34495E;
    }
}

/* 优化后的新闻列表项样式 */
.news-list-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46, 204, 113, 0.08);
    box-shadow: 0 2px 8px rgba(46,204,113,0.08);
    transition: all 0.2s;
}
.news-list-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #fff !important;
    display: block;
    box-shadow: 0 0 0 1px #fff;
    margin-right: 18px;
    flex-shrink: 0;
}
.news-list-item:hover {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 6px 18px rgba(46,204,113,0.12);
}
.news-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #34495E;
    margin-bottom: 6px;
}
.news-list-subtitle {
    font-size: 13px;
    color: #7F8C8D;
}
.news-list-item > div:last-child {
    color: #B2BEC3;
    margin-left: auto;
    font-size: 18px;
}

.news-page .news-list-item {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
} 